package com.qianda.qdminiapp.common.future;

import java.util.HashMap;

/**
 * @ClassName SendData
 * @Author cw
 * @Date 2019/8/1 16:55
 * @Version 1.0
 */
public class SendData extends HashMap<String, Object> {

    private static final long serialVersionUID = 1L;

    private  String channel;
    private  int command;

    /**
     * @param channel
     * @param command
     */
    public SendData(String channel, int command) {
        this.channel = channel;
        this.command = command;
    }
    public SendData(){}

    public String getChannel() {
        return channel;
    }

    public int getCommand() {
        return command;
    }

    @Override
    public String toString() {
        return "channel: " + channel
                + ", command: " + command
                + ", data: " + super.toString();
    }
}
